<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>酒店后台管理系统</title>

<link href="<c:url value="/css/adminLogin.css"/>" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="<c:url value="/js/jQuery.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/fun.base.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/script.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery-1.11.3.min.js"/>"></script>
<script type="text/javascript">
	// 判断是登录账号和密码是否为空
	function check() {
		var adminname = document.getElementById("value_1").value;
		var password = document.getElementById("value_2").value;
		if (adminname == "" || password == "") {
			alert("账号或密码不能为空！");
			return false;
		}
		return true;
	}
</script>

</head>
<body>
	<div class="login">
		<div class="box png">
			<div class="logo png">酒店管理后台登录</div>
			<div class="input">
				<div class="log">
					<form action="<c:url value="/adminLoginSubmit"/>" method="post" onsubmit="return check();">
						<div class="name">
							<label>用户名</label><input type="text" class="text" id="value_1" value="${admin.name}"
								placeholder="用户名" name="adminname" required="required">
						</div>
						<div class="pwd">
							<label>密 码</label><input type="password" class="text"
								id="value_2" placeholder="密码" name="password" value="${admin.password}" required="required">
							<input type="submit" class="submit" value="登录"  />
							<div class="check"></div>
						</div>
						<div class="tip" style="color: red">${msg}</div>
					</form>
				</div>
			</div>
		</div>
		<div class="air-balloon ab-1 png"></div>
		<div class="air-balloon ab-2 png"></div>
		<div class="footer"></div>
	</div>




	<!--[if IE 6]>
<script src="js/DD_belatedPNG.js" type="text/javascript"></script>
<script>DD_belatedPNG.fix('.png')</script>
<![endif]-->
	<div
		style="text-align: center; margin: 50px 0; font: normal 14px/24px 'MicroSoft YaHei';">
		<p>适用浏览器：360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
		<p>欢迎使用党伟的酒店后台管理系统,版权所有,侵权必究</p>
	</div>
</body>
</html>